package com.dasberg.gwt.dispatch;

import com.dasberg.gwt.command.GetFooAction;
import com.dasberg.gwt.command.Result;

/**
 * Test Handler for the Get Foo Action.
 * @author mischa
 */
public class GetFooExceptionThrowingHandler extends AbstractHandler<GetFooAction> {
    /** {@inheritDoc}. */
    public Result process(GetFooAction getFooAction) throws ActionException {
        throw new ActionException("oops");
    }

    /** {@inheritDoc}. */
    public void rollback(GetFooAction getFooAction) {
    }
}